package com.bgs.service.impl;

import com.bgs.entity.Evaluate;
import com.bgs.mapper.EvaluateMapper;
import com.bgs.mapper.RecyclingorderMapper;
import com.bgs.service.EvaluateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EvaluateServiceImpl implements EvaluateService {
    @Autowired
    private EvaluateMapper evaluateMapper;
    @Autowired
    private RecyclingorderMapper recyclingorderMapper;
    //用户评价
    @Override
    public void addevaluate(Evaluate evaluate) {
       evaluateMapper.addevaluate(evaluate);
       recyclingorderMapper.updateroType(evaluate.getOrderId());
    }
}